export ETCDCTL_DIAL_TIMEOUT=3s
export ETCDCTL_CACERT=/etc/kubernetes/pki/etcd/ca.pem
export ETCDCTL_CERT=/etc/kubernetes/pki/etcd/etcd.pem
export ETCDCTL_KEY=/etc/kubernetes/pki/etcd/etcd-key.pem
export ETCDCTL_API=3
export ETCDCTL_ENDPOINTS="{% set nodes = [] %}
{% for item in groups["etcd"] %}
{% set node_ansible_host = hostvars[item].ansible_host %}
{% set node_description = node_ansible_host + ":2379" %}
{{ nodes.append(node_description) }}{% endfor %}
{{ nodes|join(",") }}"